package com.qsxc.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 推广员提现分成关系表
 * </p>
 *
 * @author 
 * @since 2024-10-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SmPromoterCashDivideRecord对象", description="推广员提现分成关系表")
public class SmPromoterCashDivideRecord extends Model<SmPromoterCashDivideRecord> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "创建人")
    @TableField("create_by")
    private Long createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private Long updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty(value = "推广员 sm_promoter.id")
    @TableField("promoter_id")
    private Long promoterId;

    @ApiModelProperty(value = "提现ID sm_promoter_cash_record.id")
    @TableField("cash_id")
    private Long cashId;

    @ApiModelProperty(value = "分成ID sm_promoter_divide_record.id")
    @TableField("divide_id")
    private Long divideId;


    public static final String ID = "id";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

    public static final String PROMOTER_ID = "promoter_id";

    public static final String CASH_ID = "cash_id";

    public static final String DIVIDE_ID = "divide_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
